package com.hytc.mymall.frgament;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;


import com.hytc.mymall.base.BaseFragment;

import java.util.Arrays;

/**
 * Created by allkiss on 2016/12/9
 */


public class MerchantFragment extends BaseFragment implements View.OnClickListener {
//    private LazyTabPageIndicator indicator;
//    private ImageView iv_arrow;
//    private ImageView iv_titleArrow;
//    public CityChoosePopListener listener;
//    private LazyViewPager pager;
//    private CityChoosePop pop;
//    private RelativeLayout rl_right;
//    public SelectPopSelectListener selectListener;
//    private SelectPop selectPop;
//    private TextView tv_title;

    private void initData() {
//        this.pager.setAdapter(new MyLoveIndicatorAdapter(this.getChildFragmentManager(), this.getResources().getStringArray(2131427340), "merchant"));
//        this.indicator.setViewPager(this.pager);
    }

//    private void initSelection() {
//        this.pop = new CityChoosePop(this.getActivity(), this.iv_arrow, this.rl_right, new CityChooseCallBack() {
//            @Override
//            public void onEnsureClick(final int n, final int n2) {
//                MerchantFragment.this.listener.setOnPopItemClick(n, n2);
//            }
//        });
//        this.selectPop = new SelectPop(this.getActivity(), Arrays.asList(this.getResources().getStringArray(2131427358)), this.iv_titleArrow, this.tv_title, false, new SelectPopCallback() {
//            @Override
//            public void onItemClick(final int onPopSelect) {
//                MerchantFragment.this.selectListener.setOnPopSelect(onPopSelect);
//            }
//        });
//    }

    @Override
    public void initView(final View view) {
//        this.rl_right = this.$(view, 2131100413);
//        final RelativeLayout relativeLayout = this.$(view, 2131100410);
//        this.iv_arrow = this.$(view, 2131100417);
//        this.tv_title = this.$(view, 2131100411);
//        (this.iv_titleArrow = this.$(view, 2131100412)).setVisibility(View.VISIBLE);
//        this.pager = this.$(view, 2131099948);
//        this.indicator = this.$(view, 2131099947);
//        this.tv_title.setText((CharSequence) this.getResources().getString(2131361999));
//        relativeLayout.setOnClickListener(this);
//        this.rl_right.setOnClickListener(this);
    }

    public void onClick(final View view) {
        switch (view.getId()) {
//            default: {}
//            case 2131100410: {
//                this.selectPop.showPop();
//            }
//            case 2131100413: {
//                this.pop.showPop();
//            }
        }
    }

//    public View onCreateView(final LayoutInflater layoutInflater, final ViewGroup viewGroup, final Bundle bundle) {
//        return layoutInflater.inflate(2130903081, (ViewGroup) null);
//    }

//    @Override
//    public void onViewCreated(final View view, final Bundle bundle) {
//        super.onViewCreated(view, bundle);
//        this.initData();
//        this.initSelection();
//    }
//
//    public void setCityChoosePopListener(final CityChoosePopListener listener) {
//        this.listener = listener;
//    }
//
//    public void setSelectPopListener(final SelectPopSelectListener selectListener) {
//        this.selectListener = selectListener;
//    }
//
//    public interface CityChoosePopListener {
//        void setOnPopItemClick(final int p0, final int p1);
//    }
//
//    public interface SelectPopSelectListener {
//        void setOnPopSelect(final int p0);
//    }
}